package com.zwf.controller;

import com.zwf.dto.DocumentDTO;
import com.zwf.service.ExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/demo/export")
public class exportTestController {

    @Autowired
    private ExportService exportService;

    @PostMapping("/doc")
    public DocumentDTO exportDoc(String projectId) throws Exception {
        return exportService.exportDoc(projectId);
    }

}
